/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.pucp.dp1.procesamiento.controlador;

//import pe.edu.pucp.dp1.procesamiento.modelo.MatrizInterseccionSalida;
import Shared.MatrizInterseccionSalida;
/**
 *
 * @author Edgard
 */
public class HiloImpZona extends Thread{
    
    /**
     *
     */
    public static GestorInterseccion gestorInter = GestorInterseccion.getInstance();
    
    private MatrizInterseccionSalida matrizIntSalida;
    
    public void run(){
        while (true) {
            try {
                Thread.sleep(1000);
                gestorInter.ImpMatInterSalida(matrizIntSalida);
            } catch (Exception e) {
            }
        }
    }
    
    /**
     *
     * @param matrizIntSalida
     */
    public HiloImpZona(MatrizInterseccionSalida matrizIntSalida) {
        this.matrizIntSalida = matrizIntSalida;
    }
}
